﻿using System;
using System.Runtime.Serialization;
namespace PH.Model.Analyses.Bureaus
{
    [DataContract]
    public class B4SampleBureauModel:MBase
    {
        [Model]
        [DataMember]
        public System.Guid ArchiveGuid { get; set; }
        [Model]
        [DataMember]
        public DateTime CreatedOn { get; set; }
        [Model]
        [DataMember]
        public int BureauID { get; set; }
        [Model]
        [DataMember]
        public string Code { get; set; }
        [Model]
        [DataMember]
        public string EduName { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> PID { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> Total { get; set; }
        [Model]
        [DataMember]
        public Nullable<int> Finished { get; set; }

        #region Help
        [DataMember]
        public Nullable<int> UnFinished
        {
            get
            {
                return Total - Finished;
            }
        }
        #endregion
    }

    [DataContract]
    public class B4SampleBureauCollection : ModelCollectionBase<B4SampleBureauModel> { }

    
}
